import bcrypt from 'bcrypt'
import { log } from 'console'

const salt = bcrypt.genSaltSync(10)

const hashPasswd =  bcrypt.hashSync("test", salt)
console.log(hashPasswd);

const isValid = bcrypt.compareSync('test1',hashPasswd)

console.log(isValid);

